<script setup lang="ts">
// import { ref } from 'vue';

const props = defineProps<{
	text: string;
	class?: string;
	type?: string;
	to: string;
}>();

const btnClass = props.type === 'primary' ? 'mt-10 mb-10' : 'pl0';

</script>

<template>
	<RouterLink :to="props.to">
		<a-button :type="props.type || 'link'" :class="props.class || btnClass">
			{{ props.text }}
		</a-button>
	</RouterLink>
</template>
